package com.qzdsoft.erpcloud.domain.sys;

import java.util.ArrayList;
import java.util.List;

import com.qzdsoft.vo.TypeInfo;

/**
 * 登录用户信息
 */
public class LoginUser  {

    private Integer id;

    private Integer loginType;      //  登录类型

    private Integer companyId;

    private String name;

    private String phone;
    
    //随机数 不同则在别处登录
    private String uuid;
    
    private List<TypeInfo> companys = new ArrayList<>();//拥有权限的公司

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getLoginType() {
        return loginType;
    }

    public void setLoginType(Integer loginType) {
        this.loginType = loginType;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    
    public String getUuid()
    {
        return uuid;
    }

    public void setUuid(String uuid)
    {
        this.uuid = uuid;
    }

    public LoginUser() {
    }

    public List<TypeInfo> getCompanys()
    {
        return companys;
    }

    public void setCompanys(List<TypeInfo> companys)
    {
        this.companys = companys;
    }

    public LoginUser(Integer id, Integer loginType, Integer companyId, String account, String name, String phone) {
        this.id = id;
        this.loginType = loginType;
        this.companyId = companyId;
        this.name = name;
        this.phone = phone;
    }
}
